home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / gas_251.zip / bin_251 / bfd / hosts / sysv4.h < prev    next >
C/C++ Source or Header  |  1994-07-06  |  1KB  |  57 lines

  1. /* System V Release 4 Unix host system */
  2.  
  3. #include <stddef.h>
  4. #include <ansidecl.h>
  5. #include <fcntl.h>
  6. #include <errno.h>
  7. #include <stdio.h>
  8. #include <sys/types.h>
  9. #include <sys/stat.h>
  10. #include <utime.h>
  11. #include <ctype.h>
  12. #include <string.h>
  13. #include <sys/file.h>
  14.  
  15. #ifndef    O_ACCMODE
  16. #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
  17. #endif
  18. #define SEEK_SET 0
  19. #define SEEK_CUR 1
  20.  
  21. #define POSIX_UTIME
  22.  
  23. /* Note that we also use this for ptx4 (sequent).  ptx4 does not
  24.    really have procfs, but it has the relevant headers for BFD to read
  25.    core files, so the proper thing to do for ptx4 is define
  26.    HAVE_PROCFS in BFD but not GDB.  */
  27.  
  28. #define HAVE_PROCFS    /* This host has /proc support */
  29.  
  30. extern void    abort    PARAMS ((void));
  31. extern int    close    PARAMS ((int));
  32. extern void    exit    PARAMS ((int));
  33. extern int    fclose    PARAMS ((FILE*));
  34. extern void    free    PARAMS ((PTR));
  35. extern int    fseek    PARAMS ((FILE*, long, int));
  36. extern int    getgid    PARAMS (());
  37. extern int    getuid    PARAMS (());
  38. extern PTR    malloc    PARAMS ((unsigned));
  39. extern void    perror    PARAMS ((CONST char *));
  40. extern PTR    realloc    PARAMS ((PTR, unsigned));
  41.  
  42. extern char *getenv();
  43. extern int chmod();
  44. extern int fstat();
  45. extern int stat();
  46.  
  47. extern char *ctime();
  48. extern int _flsbuf();
  49. extern int fclose();
  50. extern int utimes();
  51. extern int vfprintf();
  52. extern long atol();
  53. extern int fputc();
  54. extern int unlink();
  55.  
  56. #include "fopen-same.h"
  57.